package com.bread.project.provider;


import org.apache.dubbo.config.annotation.DubboService;
import org.apache.dubbo.rpc.RpcContext;

@DubboService
public class DemoServiveImpl implements  DemoService{

    @Override
    public  String sayHello(String name){
        System.out.println("Hello"+name+",request form" +
                "consumer:"+ RpcContext.getContext().getRemoteAddressString());
        return "Hello "+name;
    }

    @Override
    public  String sayHello2(String name){
            return "bread";
    }
}
